
<div class="bjui-pageHeader" style="background:#FFF;">
    <div style="padding: 0 15px;">
        <h4 style="margin-bottom:20px;display: none">
            {$Think.config.WEB_SITE_TITLE}　<small>基于X-Mis智能管理系统，快速开发而来，想管理什么，建表即可！</small>
        </h4>
        <div style="float:left; width:157px;display: none">
            <div class="alert alert-info" role="alert" style="margin:0 0 5px; padding:10px;">
                <img src="__PUBLIC__/images/weixin.png" width="135">
            </div>
        </div>
        <div style="margin-left:170px; margin-top:22px; padding-left:6px;display: none">
            <span style="padding-left:10px;">X-Mis智能开发平台：</span><a href="http://www.xinyou88.net/" target="_blank">http://www.xinyou88.net/</a>   QQ群交流：147654231
        </div>
        <div class="row" style=" margin-top:10px;">
		 <form action="__URL__/index/navTabId/{:CONTROLLER_NAME}" class="pageForm" data-toggle="validate">
		 <input type="hidden" name="id" value="{$Think.session.uid}">
            <div class="col-md-12" style="padding:5px;">
                <div class="alert alert-success" role="alert" style="margin:0 0 5px; padding:5px 15px;">
                    <h5>我的便签、记事本 &nbsp;<button type="submit" class="btn-default">保存</button></h5>
                    <textarea style="width:100%;height:75px;border:0px;line-height:150%" name="bian">{$Rs.bian}</textarea> 
                </div>
            </div>
		 </form>
        </div>
    </div>
</div>
<div class="bjui-pageContent">
    <div style="margin-top:5px;  overflow:hidden;">
        <div class="row" style="padding: 0 8px;">
            <!--//-->
                      <div class="col-md-6">
                        <div class="panel panel-default">
                          <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-user-md"></i> 员工去向 <a href="{:U('quxiangs/index')}" data-toggle="navtab" data-id="{:U('quxiangs/index')}" data-title="员工去向">详细</a></h3></div>
                            <div style="min-height:185px">
							<table class="table table-bordered table-striped table-hover">
                             <thead>
                              <tr>
                              <th height=30>开始时间</th>
                              <th>结束时间</th>
							  <th>类型</th>
                              <th>去向说明</th>
                              <th>外出人</th>
                              <th>所在部门</th>
                              </tr>
                            </thead>
                            <tbody>
							<php>$list=M('quxiang')->order("id desc")->limit(5)->select();</php>
						    <volist id="v" name="list">
                            <tr>
                              <td>{$v.ktime|substr=###,0,10}</td>
                              <td>{$v.jtime|substr=###,0,10}</td>
							  <td>{$v.type|msubstr=###,0,20}</td>
                              <td>{$v.title|msubstr=###,0,20}</td>
                              <td>{$v.uname|msubstr=###,0,20}</td>
                              <td>{$v.uid|depname=###}</td>
                            </tr>
							</volist>
                           </tbody>
                          </table>
						  </div>
                        </div>
                      </div>
                      <!--//-->
                      <!--//-->
                      <div class="col-md-6">
                        <div class="panel panel-default">
                          <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-pencil-square-o"></i> 我的任务 <a href="{:U('renwu/index')}" data-toggle="navtab" data-id="{:U('renwu/index')}" data-title="我的任务">详细</a></h3></div>
                            <div style="min-height:185px">
							<table class="table table-bordered table-striped table-hover">
                             <thead>
                              <tr>
                              <th height=30>截至时间</th>
                              <th>任务标题</th>
                              <th>状态</th>
                              <th>发布人</th>
                              <th>发布时间</th>
                              </tr>
                            </thead>
                            <tbody>
							<php>$list=M('renwu')->where(array('juid'=>array('like','%'.session(uid).'%')))->order("id desc")->limit(5)->select();</php>
						    <volist id="v" name="list">
                            <tr>
                              <td>{$v.jztime|msubstr=###,0,10}</td>
                              <td>{$v.biaoti|msubstr=###,0,20}</td>
                              <td>{$v.jieguo}</td>
                              <td>{$v.uname}</td>
                              <td>{$v.addtime|substr=###,0,10}</td>
                            </tr>
							</volist>
                           </tbody>
                          </table>
						  </div>
                        </div>
                      </div>
                      <!--//-->  
					  <!--//-->
                      <div class="col-md-6">
                        <div class="panel panel-default">
                          <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-volume-up"></i>  通知公告 <a href="{:U('tongzhi/index')}" data-toggle="navtab" data-id="{:U('tongzhi/index')}" data-title="通知公告">详细</a></h3></div>
                            <div style="min-height:185px">
							<table class="table table-bordered table-striped table-hover">
                             <thead>
                              <tr>
                              <th height=30>通知标题</th>
                              <th>截止日期</th>
                              <th>发布人</th>
                              <th>发布时间</th>
                              </tr>
                            </thead>
                            <tbody>
							<php>$list=M('tongzhi')->where(array('juid'=>array('like','%'.session(uid).'%')))->order("id desc")->limit(5)->select();</php>
						    <volist id="v" name="list">
                            <tr>
                              <td>{$v.title|msubstr=###,0,20}</td>
                              <td>{$v.jztime|msubstr=###,0,10}</td>
                              <td>{$v.uname}</td>
                              <td>{$v.addtime|substr=###,0,10}</td>
                            </tr>
							</volist>
                           </tbody>
                          </table>
						  </div>
                        </div>
                      </div>
                      <!--//--> 
                      <div class="col-md-6">
                        <div class="panel panel-default">
                          <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-phone-square"></i>  待跟踪客户 <a href="{:U('cust/daoqi')}" data-toggle="navtab" data-id="{:U('cust/daoqi')}" data-title="客户跟踪">详细</a></h3></div>
                            <div style="min-height:185px">
							<table class="table table-bordered table-striped table-hover">
                             <thead>
                              <tr>
                              <th height=30>客户名称</th>
							  <th>进展</th>
							  <th>联系人</th>
							  <th>手机号码</th>
                              <th>下次联系</th>
							  <th>最后更新</th>
                              </tr>
                            </thead>
                            <tbody>
							<php>
							$map['xiaci']  =  array(array('egt',date("Y-m-d",strtotime("-1 week"))),array('elt',date("Y-m-d",strtotime("+1 month"))));
							$map[]  =  array("uid"=>array('EQ', session("uid")),"juid"=>array('like','%'.session("uid").'%'),"_logic"=>"or");
							$list=M('cust')->where($map)->limit(5)->select();
							</php>
						    <volist id="v" name="list">
                            <tr>
                              <td>{$v.title|msubstr=###,0,20}</td>
							  <td>{$v.jinzhan}</td>
							  <td>{$v.name}</td>
							  <td>{$v.dianhua}</td>
                              <td>{$v.xiaci|substr=###,0,10}</td>
							  <td>{$v.updatetime|substr=###,0,10}</td>
                            </tr>
							</volist>
                           </tbody>
                          </table>
						  </div>
                        </div>
                      </div>
                      <!--//-->  

                      <!--//-->
                      <div class="col-md-6">
                        <div class="panel panel-default">
                          <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-bus"></i>  发货记录 <a href="{:U('fahuo/index')}" data-toggle="navtab" data-id="{:U('fahuo/index')}" data-title="发货记录">详细</a></h3></div>
                            <div style="min-height:185px">
							<table class="table table-bordered table-striped table-hover">
                             <thead>
                              <tr>
                              <th height=30>客户名称</th>
                              <th>发货时间</th>
                              <th>物流快递</th>
                              <th>备注</th>
                              </tr>
                            </thead>
                            <tbody>
							<php>$list=M('fahuo')->order("id desc")->limit(5)->select();</php>
						    <volist id="v" name="list">
                            <tr>
                              <td>{$v.title|msubstr=###,0,20}</td>
                              <td>{$v.shijian|msubstr=###,0,10}</td>
                              <td>{$v.value}</td>
                              <td>{$v.beizhu|substr=###,0,50}</td>
                            </tr>
							</volist>
                           </tbody>
                          </table>
						  </div>
                        </div>
                      </div>
                      <!--//--> 
                      <div class="col-md-6">
                        <div class="panel panel-default">
                          <div class="panel-heading"><h3 class="panel-title"><i class="fa fa-leaf"></i>  到期的合同 <a href="{:U('hetong/daoqi')}" data-toggle="navtab" data-id="{:U('hetong/daoqi')}" data-title="到期的合同">详细</a></h3></div>
                            <div style="min-height:185px">
							<table class="table table-bordered table-striped table-hover">
                             <thead>
                              <tr>
                              <th height=30>客户名称</th>
							  <th>合同名称</th>
							  <th>合同编号</th>
                              <th>截止日期</th>
							  <th>经办人</th>
                              </tr>
                            </thead>
                            <tbody>
							<php>
							$map['jztime']  =  array(array('egt',date("Y-m-d",strtotime("-1 week"))),array('elt',date("Y-m-d",strtotime("+1 month"))));
							$list=M('hetong')->where($map)->limit(5)->select();
							</php>
						    <volist id="v" name="list">
                            <tr>
                              <td>{$v.title|msubstr=###,0,20}</td>
							  <td>{$v.mingcheng}</td>
							  <td>{$v.bianhao}</td>
                              <td>{$v.jztime|substr=###,0,10}</td>
							  <td>{$v.jingban}</td>
                            </tr>
							</volist>
                           </tbody>
                          </table>
						  </div>
                        </div>
                      </div>
                      <!--//-->  									  
			
        </div>
    </div>
</div>